
<%@ page import="sige.Aluno" %>
<!doctype html>
<html>
	<head>
		<meta name="layout" content="main">
		<g:set var="entityName" value="${message(code: 'aluno.label', default: 'Aluno')}" />
		<title><g:message code="default.show.label" args="[entityName]" /></title>
	</head>
	<body>
		<ul class="breadcrumb">
        	<li>
                <a href="${createLink(uri: '/')}">
                  <i class="icon-home"></i>
                  <g:message code="default.home.label"/>
                </a>
                <span class="divider"><g:message code="span.divider" /></span>
            </li>
            <li>
                <g:link action="list">
                    <i class="icon-list"></i>
                    <g:message code="default.list.label" args="[entityName]" />
                </g:link>
                <span class="divider"><g:message code="span.divider" /></span>
            </li>
            <li>
                <g:link action="create">
                    <i class="icon-file"></i>
                    <g:message code="default.new.label" args="[entityName]" />
                </g:link>
            </li>
		</ul>
		<div id="show-aluno" class="content scaffold-show" role="main">
			<center><h1><g:message code="default.show.label" args="[entityName]" /></h1></center>
			<g:if test="${flash.message}">
				<div class="alert alert-info">
                <button type="button" class="close" data-dismiss="alert">&times;</button>
                ${flash.message}
            </div>
            </g:if>
			
			<div class="container-fluid">
			<div class="span1" ></div>
			<div class="tabbable span10">
                <ul class="nav nav-tabs">
                    <li class="active"><a href="#1" data-toggle="tab">Do Aluno</a></li>
                    <li><a href="#3" data-toggle="tab">Das matrículas</a></li>
                    <li><a href="#2" data-toggle="tab">Da Anulação da Matrícula</a></li>
                    <li><a href="#4" data-toggle="tab">Endereço</a></li>
                </ul>
                
                <div class="tab-content well">
                    <div class="tab-pane active" id="1">
			            <g:render template="dados_do_aluno"/>
                    </div>
                    <div class="tab-pane" id="2">
                        <g:render template="dados_de_anulacao"/>
                    </div>
                    <div class="tab-pane" id="3">
                        <g:render template="dados_de_matriculas"/>
                    </div>
                    <div class="tab-pane" id="4">
                        <div class="form-horizontal">
                        <g:render template="dados_de_endereco"/>
                        </div>
                    </div>
                </div>
            </div>
            </div>
            <div class="container-fluid">
			<div class="span1" ></div>
			<g:form>
				<fieldset class="form-actions span10">
					<g:hiddenField name="id" value="${alunoInstance?.id}" />
					<g:link class="btn btn-warning" action="edit" id="${alunoInstance?.id}">
					    <i class="icon-edit icon-white"></i>
					    <g:message code="default.button.edit.label" default="Edit" />
					</g:link>
					<a data-toggle="modal" href="#myModal" class="btn btn-danger">
                        <i class="icon-trash icon-white"></i>
                        <g:message code="default.button.delete.label" default="Delete" /> 
                    </a>
				    <g:link class="btn btn-success" controller="contrato" action="create" id="${alunoInstance?.id}">
				        <i class="icon-check icon-white"></i>
				        <g:message code="aluno.matricular.label" default="Matricular Aluno" />
				    </g:link>
				    <g:link class="btn" action="imprime" id="${alunoInstance?.id}" target="_blank">
				        <i class="icon-print"></i>
				        <g:message code="aluno.preparar.impressao.label" default="Preparar Impressão" />
				    </g:link>
				</fieldset>
				<!--------MODAL----------->
                <div class="modal hide" id="myModal">
                    <div class="modal-header">
                        <a class="close" data-dismiss="modal">×</a>
                        <h3><g:message code="default.button.delete.atention.message" default="Atenção!" /></h3>
                    </div>
                    <div class="modal-body">
                        <p><g:message code="default.button.delete.confirm.message" default="Are you sure?" /> </p>
                    </div>
                    <div class="modal-footer">
                        <a class="btn" data-dismiss="modal">
                            <g:message code="default.cancel.label" default="Cancelar" />
                        </a>
                        <g:actionSubmit class="btn btn-danger" action="delete" value="${message(code: 'default.button.delete.label', default: 'Delete')}" />
                    </div>
                </div>
			</g:form>
			</div>
		</div>
	</body>
</html>
